package com.jbm.jbmsupplier.activity.repairs;

import android.support.v7.widget.Toolbar;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.TextView;

import com.jbm.jbmsupplier.R;
import com.jbm.jbmsupplier.activity.AllActivityApp;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 报修分类
 * 0 代表公租房   1 代表我爱我家
 */
public class FixCategoryAty extends AllActivityApp {
    @InjectView(R.id.fixCatrgory_gv)
    GridView fixCatrgoryGv;
    @InjectView(R.id.teleft)
    TextView teleft;
    @InjectView(R.id.tetitle)
    TextView tetitle;
    @InjectView(R.id.toolbar_image)
    ImageView toolbarImage;
    @InjectView(R.id.to_custro)
    Toolbar toCustro;

    private FixCategoryModel model;

    @Override
    public int setContentView() {
        return R.layout.activity_fix_category_aty;
    }

    @Override
    public void initIalizeView() {
        ButterKnife.inject(this);
        tetitle.setText("报修分类");
        model = new FixCategoryModel(this);
        model.setData(fixCatrgoryGv, getIntent().getStringExtra("category"), (UserAddress) getIntent().getSerializableExtra("address"));
    }
    @OnClick(R.id.teleft)
    public void onViewClicked() {
        finish();
    }
}
